<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@include file="connection.jsp"%>
<%

            //HttpSession session = request.getSession();
            //session = request.getSession();

            String userid = (String) session.getAttribute("userid");

            if (userid == null) {
                response.sendRedirect("login.jsp");
            }         
			/*  
            String oldPass = request.getParameter("old_password");
            String message = "";

            if (oldPass != null) {
                Connection c = getConnection("pmsadmin");
                Statement s = c.createStatement();
                ResultSet rs = s.executeQuery("select password from users where userid='" + userid + "'");
                if (rs.first()) {
                    if (rs.getString(1).equals(oldPass)) {
                        s.executeUpdate("update users set password='" + request.getParameter("new_password") + "' where userid='" + userid + "'");
                        message = "Password changed successfully.";
                    } else {
                        message = "Invalid password.";
                    }
                }
                rs.close();
                s.close();
                c.close();
            }
*/

%>

<html>
    <head>
		<link href="css/medbill.css" rel="stylesheet" type="text/css" />
	 	<link href="css/calendar-win2k-1.css" rel="stylesheet" type="text/css"/>  	
		<script type="text/javascript" src="script/calendar.js"></script>
		<script type="text/javascript" src="script/calendar-en.js"></script>
		<script type="text/javascript" src="script/calendar-setup.js"></script>
        <title>Invoice Report</title>
        <script language="javascript">
            function validateForm(){
        
            }
            	/*
	calender related code
	*/
	
  var input_field="";
  function showCalendar(id, format, showsTime, showsOtherMonths, inputField)
  {
		var calDate;
		input_field = inputField; 
		//	inputField = document.getElementById("strategicTaskCreate:completedOnDate").value;
		if (inputField.value.length>0)
			calDate = inputField.value;
		else
			calDate = null;
			
		var calTask = new Calendar(0, calDate, onSelectTaskPageCompDate, onCloseTaskPageCompDate);
		
		calTask.weekNumbers = false;
		calTask.showsTime = false;
		calTask.showsOtherMonths = false;
		calTask.isPopup = true;
		calTask.setDateFormat("%m/%d/%Y");
		calTask.create();	
		
		calTask.showAtElement(document.getElementById(id),"Br");	
		
	}
	function onSelectTaskPageCompDate(calendar, date)
	{
	 if(calendar.dateClicked)
	 {
	   //var input_field= document.getElementById("strategicTaskCreate:completedOnDate");
	   input_field.value = date;
		onCloseTaskPageCompDate(calendar);  
	 }
	}
	
	function onCloseTaskPageCompDate(cal)
	{
		cal.hide();
	}

        </script>
    </head>
    
    <body>
	<table width="860" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="204" valign="top"><%@include file="header.jsp"%></td>
  </tr>
  <tr>
    <td height="30" bgcolor="#1f226f" class="headingBlue">Medical Billing and Claim Processing Professionals</td>
  </tr>
  <tr>
    <td valign="top" bgcolor="#ccae74"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="470" valign="top" class="txtPageTitle">Invoice Report  </td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="560"></td>
              </tr>
              <tr>
                <td class="txtHomeBody"></td>
              </tr>
            </table>
              <br>
        <form name="ChangePassword" onsubmit="return validateForm();" action="invoicepost.jsp" method="post">
            <div>
                <table border="0" width="400" cellpadding="0">
                    <tr>
                        <td width="394" colspan="2"><font color='red'><%//=message%></font></td>
                    </tr>
                    <tr>
                        <td width="99" align="left">From: </td>
                        <td width="295">
                        <input type="text" readonly name="from_date" id="from_date" size="20" /> <img src="images/cal-icon.gif" onClick="return showCalendar('btnCalendar', '%m/%d/%Y', '24', false, document.getElementById('from_date'));" id="btnCalendar" /></td>
                    </tr>
                    <tr>
                        <td width="99" align="left">To:</td>
                        <td width="295">
                        <input type="text" readonly name="to_date" id="to_date" size="20" /> <img src="images/cal-icon.gif" onClick="return showCalendar('btnCalendar1', '%m/%d/%Y', '24', false, document.getElementById('to_date'));" id="btnCalendar1"/></td>
                    </tr>                 
                    <tr>
                        <td width="99">&nbsp;</td>
                        <td width="295">&nbsp;</td>
                    </tr>
                    <tr>
                        <td width="99">&nbsp;</td>
                        <td width="295"><input type="submit" value="Submit"/> </td>
                    </tr>
                </table>
            </div>
            <p>&nbsp;</p>
        </form>
		  <br></td>
            <td width="45" valign="top">&nbsp;</td>
            <td valign="top">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="62" valign="top"><!-- #BeginLibraryItem "/Library/footer.lbi" --><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="4" bgcolor="#c7540f"></td>
      </tr>
      <tr>
        <td height="58" bgcolor="#1e2667">&nbsp;</td>
      </tr>
    </table><!-- #EndLibraryItem --></td>
  </tr>
</table>
    </body>
</html>